﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace FPSO.HMI.Controls
{
    /// <summary>
    /// UCValveInfo.xaml 的交互逻辑
    /// </summary>
    public partial class UCValveInfo : UserControl
    {
        public UCValveInfo()
        {
            InitializeComponent();
        }

        public static readonly DependencyProperty ValvesNameProperty = DependencyProperty.Register("ValveName",
            typeof(string), typeof(UCValveInfo), new PropertyMetadata(""));
        public string ValveName
        {
            get { return (string)GetValue(ValvesNameProperty); }
            set { SetValue(ValvesNameProperty, value); }
        }

        public static readonly DependencyProperty OpenRatioProperty = DependencyProperty.Register("OpenRatio",
            typeof(int), typeof(UCValveInfo), new PropertyMetadata(0));
        public int OpenRatio
        {
            get { return (int)GetValue(OpenRatioProperty); }
            set { SetValue(OpenRatioProperty, value); }
        }

        public static readonly DependencyProperty KeepTimeProperty =
            DependencyProperty.Register("KeepTime", typeof(string), typeof(UCValveInfo), new PropertyMetadata("00:00:00"));
        public string KeepTime
        {
            get { return (string)GetValue(KeepTimeProperty); }
            set { SetValue(KeepTimeProperty, value); }
        }
    }
}
